package money;

public class Laboratory {
	public class lab {
	    public String name;
	    public String level;

	    public lab(String name, String level) {
	        this.name = name;
	        this.level = level;
	    }
	    public String toString() {
	        return "" + name + "  等级：" + level;
	    }

	    public String getname() {
	        return name;
	    }

	    public String getlevel() {
	        return level;
	    }

	}

public void judgement(String[] cleanScore){
	// TODO Auto-generated method stub
	 try {
            for (int i = 0; i < 18; i++) {
                if (cleanScore[i]=="优秀") {
                    Student.income(300);
                }
                if (cleanScore[i]=="良好") {
                	Student.income(200);
                }
                if (cleanScore[i]=="及格") {
                	Student.income(100);
                }
                if (cleanScore[i]=="不及格") {
                	Student.income(0);
                }
                if (cleanScore[i]=="优秀"||cleanScore[i]=="良好"||cleanScore[i]=="及格"||cleanScore[i]=="不及格") {
                    continue;
                }
                System.out.println("该等级输入异常！");
                break;
            }
        } catch (Exception e) {
            System.out.println("该等级输入异常！");
        }
    }}